//
//  WFDropCollectionViewCell.m
//  谷居
//
//  Created by dllo on 16/6/24.
//  Copyright © 2016年 刘万方. All rights reserved.
//

#import "WFDropCollectionViewCell.h"

@implementation WFDropCollectionViewCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createTitleLabel];
    }
    return self;
}


- (void)createTitleLabel {
    NSLog(@"%@", self.model);
    _titleLabel = [[WFLabel alloc]initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height)];
    [self.contentView addSubview:_titleLabel];
    [_titleLabel release];
    _titleLabel.backgroundColor = [UIColor whiteColor];
    _titleLabel.text = _model.name;
}

- (void)dealloc {
    [_model release];
    [super dealloc];
}
@end
